<?php
/*
	插件初始化
*/
namespace jy_quanhuo;
defined('BY_JYA') or exit('error');
function init($plugin){
	//定义本场景的一些独立,为空表示共用电商客的
	$plugin->weishop_order_detail='';
	$plugin->weishop_order_list='';
	$plugin->setting=$plugin->plugin_setting('basic');
	$plugin->syscolor=$plugin->setting['syscolor']?:'';
	$plugin->pay_types=array(
		'credit'=>'打款到余额',
		'wechat'=>'打款到微信零钱',
		'alipay'=>'打款到支付宝',
		'union'=>'打款到银行卡',
		'downline'=>'线下微信打款',
	);
	$plugin->sendtypes=array(
		1=>'快递配送',
		2=>'自提点自取',
		3=>'虚拟物品',
	);
	$plugin->order_status=array(
		0=>'待付款',
		1=>'已付款',
		2=>'已发货',
		3=>'已完成',
		4=>'申请退款',
		5=>'退款成功',
		7=>'已取消',
		8=>'参与成功',
		9=>'免单成功',
	);
	$plugin->jili_status=array(
		0=>'待接龙',
		1=>'已接龙',
		2=>'核销成功',
		3=>'已完成',
		4=>'申请退款',
		5=>'退款成功',
		7=>'已取消',
	);
	$plugin->fee_status=array(
		0=>'待支付',
		1=>'已支付',
		2=>'核销成功',
		3=>'已完成',
		4=>'申请退款',
		5=>'退款成功',
		7=>'已取消',
	);
	$plugin->alltools=array(
			array('name'=>'jy_merchtool_tb','title'=>'填表登记','desc'=>'信息收集统计','icon'=>'icon-form',),
			array('name'=>'jy_merchtool_bm','title'=>'活动报名','desc'=>'聚会 培训 会议','icon'=>'icon-dingdan',),
			array('name'=>'jy_merchtool_yy','title'=>'服务预约','desc'=>'商家服务预约','icon'=>'icon-survey1',),
			array('name'=>'jy_merchtool_tz','title'=>'通知公告','desc'=>'公告 通知信息','icon'=>'icon-training',),
			array('name'=>'jy_merchtool_vote','title'=>'投票评选','desc'=>'投票 排名','icon'=>'icon-yuyue',),
			array('name'=>'jy_merchtool_wj','title'=>'问卷调查','desc'=>'投诉反馈','icon'=>'icon-survey',),
			array('name'=>'jy_merchtool_fee','title'=>'费用收集','desc'=>'集体/班级收款/社群捐款','icon'=>'icon-jiangjiatongzhi',),
			array('name'=>'jy_merchtool_red','title'=>'红包接龙','desc'=>'裂变红包/随机抽取红包','icon'=>'icon-ai-hongbao',),
			array('name'=>'jy_merchtool_car','title'=>'停车预约','desc'=>'商家停车预约','icon'=>'icon-qiche',),
			array('name'=>'jy_merchtool_gq','title'=>'供求信息','desc'=>'供求信息的发布、周边信息','icon'=>'icon-rfq',),
	);
	$plugin->allgames=array(
			array('name'=>'jy_merchgame_ms','title'=>'秒杀活动','desc'=>'促销保单利器','icon'=>'../addons/jy_quanhuo/resource/images/ms.png',),
			array('name'=>'jy_merchgame_fx','title'=>'分销活动','desc'=>'促销保单利器','icon'=>'../addons/jy_quanhuo/resource/images/fx.png',),
			array('name'=>'jy_merchgame_pt','title'=>'拼团活动','desc'=>'促销保单利器','icon'=>'../addons/jy_quanhuo/resource/images/pt.png',),
			array('name'=>'jy_merchgame_tg','title'=>'团购活动','desc'=>'促销保单利器','icon'=>'../addons/jy_quanhuo/resource/images/tg.png',),
			array('name'=>'jy_merchgame_cj','title'=>'抽奖活动','desc'=>'促销保单利器','icon'=>'../addons/jy_quanhuo/resource/images/cj.png',),
			array('name'=>'jy_merchgame_bao','title'=>'付费报名','desc'=>'发起团活动报名','icon'=>'../addons/jy_quanhuo/resource/images/baom.png',),
			array('name'=>'jy_merchgame_bm','title'=>'帮卖活动','desc'=>'促销保单利器','icon'=>'../addons/jy_quanhuo/resource/images/bm.png',),
	);
	$plugin->allitemgame=array(
			'jy_merchtool_tb'=>array('name'=>'jy_merchtool_tb','title'=>'填表登记','unit'=>'填表','desc'=>'信息收集统计','icon'=>'icon-form',),
			'jy_merchtool_bm'=>array('name'=>'jy_merchtool_bm','title'=>'活动报名','unit'=>'报名','desc'=>'聚会 培训 会议','icon'=>'icon-dingdan',),
			'jy_merchtool_yy'=>array('name'=>'jy_merchtool_yy','title'=>'服务预约','unit'=>'预约','desc'=>'商家服务预约','icon'=>'icon-survey1',),
			'jy_merchtool_tz'=>array('name'=>'jy_merchtool_tz','title'=>'通知公告','unit'=>'通知','desc'=>'公告 通知信息','icon'=>'icon-training',),
			'jy_merchtool_vote'=>array('name'=>'jy_merchtool_vote','title'=>'投票评选','unit'=>'投票','desc'=>'投票 排名','icon'=>'icon-yuyue',),
			'jy_merchtool_wj'=>array('name'=>'jy_merchtool_wj','title'=>'问卷调查','unit'=>'问卷','desc'=>'投诉反馈','icon'=>'icon-survey',),
			'jy_merchtool_fee'=>array('name'=>'jy_merchtool_fee','title'=>'费用收集','unit'=>'费用','desc'=>'集体/班级收款/社群捐款','icon'=>'icon-jiangjiatongzhi',),
			'jy_merchtool_red'=>array('name'=>'jy_merchtool_red','title'=>'红包接龙','unit'=>'红包','desc'=>'裂变红包/随机抽取红包','icon'=>'icon-ai-hongbao',),
			'jy_merchtool_gq'=>array('name'=>'jy_merchtool_gq','title'=>'供求信息','unit'=>'供求','desc'=>'供求信息的发布、周边信息','icon'=>'icon-rfq',),
			'jy_merchtool_car'=>array('name'=>'jy_merchtool_car','title'=>'停车预约','unit'=>'预约','desc'=>'商家停车预约','icon'=>'icon-qiche',),
			'jy_merchgame_ms'=>array('name'=>'jy_merchgame_ms','title'=>'秒杀活动','unit'=>'秒杀','desc'=>'促销保单利器','icon'=>'',),
			'jy_merchgame_fx'=>array('name'=>'jy_merchgame_fx','title'=>'分销活动','unit'=>'分销','desc'=>'促销保单利器','icon'=>'',),
			'jy_merchgame_pt'=>array('name'=>'jy_merchgame_pt','title'=>'拼团活动','unit'=>'拼团','desc'=>'促销保单利器','icon'=>'',),
			'jy_merchgame_tg'=>array('name'=>'jy_merchgame_tg','title'=>'团购活动','unit'=>'团购','desc'=>'促销保单利器','icon'=>'',),
			'jy_merchgame_cj'=>array('name'=>'jy_merchgame_cj','title'=>'抽奖活动','unit'=>'抽奖','desc'=>'促销保单利器','icon'=>'',),
			'jy_merchgame_bm'=>array('name'=>'jy_merchgame_bm','title'=>'帮卖活动','unit'=>'帮卖','desc'=>'促销保单利器','icon'=>'',),
			'jy_merchgame_bao'=>array('name'=>'jy_merchgame_bao','title'=>'付费报名','unit'=>'报名','desc'=>'发起团活动报名','icon'=>'',),
	);
	$plugin->tplgames=array(
			array('name'=>'jy_merchgame_ms','title'=>'秒杀活动','desc'=>'促销保单利器','icon'=>'',),
			array('name'=>'jy_merchgame_fx','title'=>'分销活动','desc'=>'促销保单利器','icon'=>'',),
			array('name'=>'jy_merchgame_pt','title'=>'拼团活动','desc'=>'促销保单利器','icon'=>'',),
			array('name'=>'jy_merchgame_tg','title'=>'团购活动','desc'=>'促销保单利器','icon'=>'',),
			array('name'=>'jy_merchgame_cj','title'=>'抽奖活动','desc'=>'促销保单利器','icon'=>'',),
			array('name'=>'jy_merchgame_bm','title'=>'帮卖活动','desc'=>'促销保单利器','icon'=>'',),
			array('name'=>'jy_merchgame_bao','title'=>'付费报名','desc'=>'发起团活动报名','icon'=>'',),
	);
	$plugin->allgames2=array(
			'jy_merchgame_ms'=>'秒杀活动',
			'jy_merchgame_fx'=>'分销活动',
			'jy_merchgame_pt'=>'拼团活动',
			'jy_merchgame_tg'=>'团购活动',
			'jy_merchgame_cj'=>'抽奖活动',
			'jy_merchgame_bm'=>'帮卖活动',
			'jy_merchgame_bao'=>'付费报名',
	);
	$plugin->tplgames2=array(
			'jy_merchgame_ms'=>'秒杀活动',
			'jy_merchgame_fx'=>'分销活动',
			'jy_merchgame_pt'=>'拼团活动',
			'jy_merchgame_tg'=>'团购活动',
			'jy_merchgame_cj'=>'抽奖活动',
			'jy_merchgame_bm'=>'帮卖活动',
			'jy_merchgame_bao'=>'付费报名',
	);
	$plugin->game_url=array(
			'jy_merchgame_ms'=>'秒杀活动',
			'jy_merchgame_fx'=>'分销活动',
			'jy_merchgame_pt'=>'拼团活动',
			'jy_merchgame_tg'=>'团购活动',
			'jy_merchgame_cj'=>'抽奖活动',
			'jy_merchgame_bm'=>'帮卖活动',
			'jy_merchgame_bao'=>'付费报名',
	);
	$plugin->baomingfileds=array(
		array('title'=>'项目名称','type'=>'1','ismust'=>'0','value'=>'项目名称'),
		array('title'=>'费用(￥)','type'=>'18','ismust'=>'0','value'=>''),
		array('title'=>'人数','type'=>'2','ismust'=>'0','value'=>'10'),
	);
	$plugin->groupfileds=array(
		array('title'=>'商品名称','type'=>'1','ismust'=>'0','value'=>'商品名称'),
		array('title'=>'商品图片','type'=>'3','ismust'=>'0','value'=>'商品图片'),
		array('title'=>'单位(件)','type'=>'1','ismust'=>'0','value'=>''),
		array('title'=>'价格(￥)','type'=>'18','ismust'=>'0','value'=>''),
		array('title'=>'库存','type'=>'2','ismust'=>'0','value'=>'1000'),
	);
	$plugin->commission_status=array(
		'0'=>'订单待完成',
		'1'=>'待结算',
		'2'=>'已结算',
	);
	$plugin->balance_status=array(
		'0'=>'待审核',
		'1'=>'审核通过',
		'2'=>'审核不通过',
		'3'=>'已打款',
	);
	$plugin->refund_types=array(
		'0'=>'退货退款',
		'1'=>'换货',
		'2'=>'退货不退款',
		'3'=>'退款不退货',
	);
}